// 传入秒数调用
const formatAudioTime = (time) => {
  let minute = Math.floor(time / 60);
  let second = Math.floor(time % 60);
  if(isNaN(minute)){
    return '00:00'
  }
  return `${minute>=10?minute:'0'+minute}:${second>=10?second:'0'+second}`;
}

module.exports = {
  formatAudioTime
}